<template>
    <div id="app">
      <router-view/>

      <showImg ref="img"></showImg>
    </div>
</template>

<script>
import showImg from '@/dialog/img/showImg'
export default {
    name: 'App',
     data() {
      return {};
    },
    components: { showImg },
    mounted() {
      let _this = this;

      //监听图片点击事件
	    document.addEventListener("click", function(e){
        _this.$refs.img.open(e);
	    });
	}
}
</script>

